package com.xf.day03.extendsTest

class Student9 extends Person9 {
  //  实现抽象属性 和方法
  override var age: Int = 18

  override def sleep(): Unit = {
    println("Student sleep")
  }

  //重写 非抽象属性和方法
  // override val name:String = "student"
  name = "student"

  override def eat(): Unit = {
    super.eat()
    println("student eat")
  }
}
